import chalk from "chalk";

const log = console.log;

export enum ConsoleType {
  Log = "log",
  Error = "error",
  Warning = "warning",
  Success = "success"
}


export const mconsole = {
  success(msg: any) {
    return log(chalk.blue(`[ONRELY] [${ConsoleType.Success}]`), chalk.green(msg));
  },
  log(msg: any) {
    return log(chalk.blue(`[ONRELY] [${ConsoleType.Log}]`), chalk.white(msg));
  },
  error(msg: any) {
    return log(chalk.blue(`[ONRELY] [${ConsoleType.Error}]`), chalk.red(msg));
  },
  warning(msg: any) {
    return log(chalk.blue(`[ONRELY] [${ConsoleType.Warning}]`), chalk.yellow(msg));
  }
};